package com.powergisol.gis.service.impl;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.powergisol.gis.service.ChangeMapService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


@Component
public class ChangeMapServiceImpl implements ChangeMapService {
    private static Logger logger = LoggerFactory.getLogger(ChangeMapServiceImpl.class);

    @Override
    public Boolean gltfCompression(String in, String out) {
        return null;
    }

    @Override
    public Boolean objToGltf(String in, String out) {
        throw new RuntimeException();
        //return null;
    }

    @Override
    public Boolean osgb2b3dm(String in, String out) {
        return null;
    }

    @Override
    public Boolean osgb2b3dmNew(String in, String out) {
        return null;
    }
    @Override
    public Boolean osgbToPld(String in, String out) {
        return null;
    }

    @Override
    public Boolean  tif2terrain(String in,String out,String start, String end){
        return null;
    }

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Double progressGltfCompression(String in, String out) {
        return null;
    }

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Double progressObjToGltf(String in, String out) {
        return null;
    }

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Double progressOsgb2b3dm(String in, String out) {
        throw new RuntimeException();
        //return null;
    }

    @Override
    public Double osgb2Pld(String in, String outs) {
        return null;
    }

    @Override
    @HystrixCommand(commandProperties = {
            @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds",value = "3000")
    })
    public Double progressTif2terrain(String layers, String out) {
        return null;
    }
}
